package cn.knowei.miaosha.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: knowei
 * @Description:
 * @Date: Create in 19:29 2023-04-07
 */
@Getter
@AllArgsConstructor
public enum DelayTypeEnum {

    DELAY_10S(1),

    DELAY_60S(2);

    private Integer type;

    public static DelayTypeEnum display(Integer type) {
        if (type == 1) {
            return DELAY_10S;
        }
        if (type == 2) {
            return DELAY_60S;
        }
        return null;
    }
}
